package com.hxm.webview.api;

import com.hxm.webview.entity.NewsDetail;

import retrofit2.http.GET;
import retrofit2.http.Path;
import rx.Observable;

/**
 * Created by HXM on 2016/8/8.
 * Description:新闻详情
 单一地址 无参数,其中484391为新闻 id
 http://m1.mydrivers.com/newscontent/detail_484391_2.json
 */
public interface NewsDetailApi {
    @GET("/newscontent/detail_{id}_2.json")
    Observable<NewsDetail[]> getNewsDetail(@Path("id") String id);
}
